<!DOCTYPE html>
<meta charset="utf-8">
<link rel="match" href="change-text-node-data-wrapping-expected.html">
<style>
#test {
  contain: layout size;
  width: 110px;
  font: 25px/1 Ahem;
}
</style>
<p>The test passes if there is only one line of text below.</p>
<div id="test">
  XX
</div>
<script>
  let contentNode = document.createTextNode("");
  contentNode.data = "XXXX";
  test.appendChild(contentNode);

  document.body.offsetLeft;
  contentNode.data = "X";
</script>
